package com.cheerful.oj.judge.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.util.Date;
import lombok.Builder;

/**
 * (Submission)表实体类
 *
 * @author makejava
 * @since 2022-06-22 20:20:18
 */
@Builder
@TableName("ums_submission")
public class Submission extends Model<Submission> {

	private Long id;

	private Long userId;
	//用户
	private String nickname;

	private Long questionId;
	//题目
	private String questionTitle;
	//时间占用
	private Double timeUsed;
	//内存占用
	private Double memoryUsed;
	//时间
	private Date gmtCreate;
	//提交语言
	private Integer language;

	private String fromIp;
	//判题结果状态
	private Integer resultCode;
	//响应详细信息数据
	private String resultInfo;
	//判题结果信息
	private String resultMsg;
	//用户源代码
	private String source;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public Long getQuestionId() {
		return questionId;
	}

	public void setQuestionId(Long questionId) {
		this.questionId = questionId;
	}

	public String getQuestionTitle() {
		return questionTitle;
	}

	public void setQuestionTitle(String questionTitle) {
		this.questionTitle = questionTitle;
	}

	public Double getTimeUsed() {
		return timeUsed;
	}

	public void setTimeUsed(Double timeUsed) {
		this.timeUsed = timeUsed;
	}

	public Double getMemoryUsed() {
		return memoryUsed;
	}

	public void setMemoryUsed(Double memoryUsed) {
		this.memoryUsed = memoryUsed;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Integer getLanguage() {
		return language;
	}

	public void setLanguage(Integer language) {
		this.language = language;
	}

	public String getFromIp() {
		return fromIp;
	}

	public void setFromIp(String fromIp) {
		this.fromIp = fromIp;
	}

	public Integer getResultCode() {
		return resultCode;
	}

	public void setResultCode(Integer resultCode) {
		this.resultCode = resultCode;
	}

	public String getResultInfo() {
		return resultInfo;
	}

	public void setResultInfo(String resultInfo) {
		this.resultInfo = resultInfo;
	}

	public String getResultMsg() {
		return resultMsg;
	}

	public void setResultMsg(String resultMsg) {
		this.resultMsg = resultMsg;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	/**
	 * 获取主键值
	 *
	 * @return 主键值
	 */
	@Override
	protected Serializable pkVal() {
		return this.id;
	}
}

